// base
import Taro, { Component } from '@tarojs/taro'
import { View, Image } from '@tarojs/components'
// less
import './index.less'

class ShowNull extends Component {
  componentWillMount () {
    // onLoad
  }

  componentDidMount () {
    // onready
  }

  componentWillUnmount () {
    // onUnload
  }

  componentWillReceiveProps (nextprops) {}

  delay (time = 0) {
    return new Promise(resolve => {
      setTimeout(() => {
        resolve()
      }, time)
    })
  }

  render () {
    let { imgUrl, text } = this.props
    return (
      <View className="ShowNull_id82040">
        <Image className="info-class-wrap" mode="widthFix" src={imgUrl || 'https://imagesize.hrwork.com/sp/files/a1244b26-4d22-4c72-ade8-214c4ffe3b75.png'} />
        <View className="info-class">{text}</View>
      </View>
    )
  }
}

export default ShowNull
